import request from '../common/request/request.js'

export const login = async ({
	zip = '+86',
	username = '',
	phoneValid = '',
	pushRegister = '',
	source = '',
	monitor_name = '',
	platform,
	openId,
	fromApp = false
}) => {
	return await request.post('/customer/quick-login', {
		zip,
		username,
		phoneValid,
		pushRegister,
		source,
		monitor_name,
		platform,
		openId,
		fromApp
	}, true)
}

export const getUserInfo = async () => {
	return await request.get('/customer/user/center')
}